package org.itstack.demo.design;

/**
 * @Author: fanYuLe
 * @CreateTime: 2023-12-15  15:04
 * @Description: 懒汉模式（线程不安全）
 */
public class Singleton_01 {
    private static Singleton_01 instance;

    private Singleton_01() {
    }

    public static Singleton_01 getInstance(){
        if(null != instance){
            return instance;
        }
        return new Singleton_01();
    }
}
